package com.liao.badminton.vo;

import com.liao.badminton.code.BaseField;
import io.swagger.annotations.ApiModelProperty;
import java.lang.String;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import lombok.Data;
import com.liao.badminton.entity.BadmintonGroup;
/**
* @author liaocheng
* @date 2024-11-15
* description:群表
*/
@Data
public class BadmintonGroupVo  extends BaseField {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "8位唯一码")
    private String groupCode;

    @ApiModelProperty(value = "群名字")
    private String groupName;


    @ApiModelProperty(value = "用户群Id")
    private Long userGroupId;
    @ApiModelProperty(value = "用户群名字")
    private String userGroupName;
    @ApiModelProperty(value = "用户群名字")
    private Integer userGroupSex;

    @ApiModelProperty(value = "发布打水次数")
    private Integer competitionNum;

    @ApiModelProperty(value = "发布活动次数")
    private Integer activityNum;

    private Integer collectType;  //收费方式：0均摊，1固定
    private BigDecimal fixedMale;  //男生固定价格
    private BigDecimal fixedFemale;  //女生固定价格

    @ApiModelProperty(value = "女生优惠价格5")
    private BigDecimal femaleDiscountPrice;

    @ApiModelProperty(value = "每桶球数:12")
    private Integer bucketBallNum;

    @ApiModelProperty(value = "每桶球价格:120")
    private BigDecimal bucketPerPrice;

    @ApiModelProperty(value = "场地数量默认1")
    private Integer siteNum;

    @ApiModelProperty(value = "每片场地每小时价格")
    private BigDecimal sitePerPrice;
    @ApiModelProperty(value = "时长：一般是两小时")
    private BigDecimal timeLength;
    private List<Long> delIds;  //批量删除ids
    @ApiModelProperty(value = "群角色:0:普通成员,1:管理员,2:群主")
    private Integer adminType;  //0:普通成员,1:管理员,2:群主
    private Integer joinNum;  //0:普通成员,1:管理员,2:群主
    @ApiModelProperty(value = "进群类型：0管理确认，1自动")
    private Long joinType;
    private BigDecimal extraPerCost;  //额外每人：2玩
    private BigDecimal extraFixedCost;  //额外固定：组一场球收50

    public static BadmintonGroupVo invertToVo(BadmintonGroup badmintonGroup){
        BadmintonGroupVo vo = new BadmintonGroupVo();
        BaseField.invert(badmintonGroup, vo);
        vo.setId(badmintonGroup.getId());
        vo.setGroupCode(badmintonGroup.getGroupCode());
        vo.setGroupName(badmintonGroup.getGroupName());
        vo.setCompetitionNum(badmintonGroup.getCompetitionNum());
        vo.setActivityNum(badmintonGroup.getActivityNum());
        vo.setCollectType(badmintonGroup.getCollectType());
        vo.setFixedMale(badmintonGroup.getFixedMale());
        vo.setFixedFemale(badmintonGroup.getFixedFemale());
        vo.setFemaleDiscountPrice(badmintonGroup.getFemaleDiscountPrice());
        vo.setBucketBallNum(badmintonGroup.getBucketBallNum());
        vo.setBucketPerPrice(badmintonGroup.getBucketPerPrice());
        vo.setSiteNum(badmintonGroup.getSiteNum());
        vo.setSitePerPrice(badmintonGroup.getSitePerPrice());
        vo.setTimeLength(badmintonGroup.getTimeLength());
        vo.setJoinType(badmintonGroup.getJoinType());
        vo.setExtraPerCost(badmintonGroup.getExtraPerCost());
        vo.setExtraFixedCost(badmintonGroup.getExtraFixedCost());
        return vo;
    }

}
